﻿using System;
using System.Collections.Generic;
using System.Net.Http;

namespace Jaiden.Net.Http.Test
{
    public class Program
    {
        public static void Main(String[] args)
        {
            var client = new HttpClient(new JaidenHttpMessageHandler());
            client.DefaultRequestHeaders.UserAgent.TryParseAdd("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36");
            var str = client.PostAsync("https://www.httpbin.org/anything", new FormUrlEncodedContent(new[]
            {
                new KeyValuePair<string, string>("pi", "3.1415926535"),
            })).Result;
            Console.WriteLine(str.Content.ReadAsStringAsync().Result);
            Console.ReadLine();
        }
    }
}
